package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.PageResult;
import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;

import java.util.List;

public interface StudentService extends IService<Student> {
    /**
     * 条件分页查询
     *
     * @param student
     */
    PageResult queryPage(StudentQueryParam student);

    /**
     * 新增学生信息
     *
     * @param student
     */
    void insertStudent(Student student);

    /**
     * 根据id来查询学生信息
     *
     * @param id
     * @return
     */
    Student getStudentById(Integer id);

    /**
     * 修改学生信息
     *
     * @param student
     */
    void updateStudent(Student student);

    /**
     * 根据id删除学生信息
     *
     * @param ids
     */
    void deleteStudent(List<Integer> ids);

    /**
     * 扣分
     * @param id
     * @param score
     */
    void violation(Integer id, Integer score);
}
